package com.it.zhangjun.design.pattern.statePattern;

/**
 * @className: OpenState
 * @description: 汽车开门状态
 * @author: z00018123
 * @date: 2021/4/29
 **/
public class OpenState extends CarState {

    /**
     * 打开汽车们
     */
    @Override
    protected void open() {
        System.out.println("汽车门已开启...");
    }

    /**
     * 关闭汽车们
     */
    @Override
    protected void close() {

    }

    /**
     * 门开着时汽车一般不奔跑
     */
    @Override
    protected void run() {

    }

    /**
     * 门开着时汽车一般不是停止状态
     */
    @Override
    protected void stop() {

    }
}
